package com.xiaoxu.intranetweb.mybatisplusSzappdb.Dic;

import org.springframework.stereotype.Component;

@Component
public class ProductDic {
    /**
     * 是否指定装载点
     * @param status
     * @return
     */
    public String pdtLoadSite(Integer status){
        String dic = "";
        if (status == null ){
            return dic;
        }
        switch (status){
            case 0:
                dic = "是";
                break;
            case 1:
                dic = "否";
                break;
        }
        return dic;
    }

    public String pdtLoadCtrl(Integer status){
        String dic = "";
        if (status == null ){
            return dic;
        }
        switch (status){
            case 0:
                dic = "是";
                break;
            case 1:
                dic = "否";
                break;
        }
        return dic;
    }

    public String pdtIdentityLoad(Integer status){
        String dic = "";
        if (status == null ){
            return dic;
        }
        switch (status){
            case 0:
                dic = "是";
                break;
            case 1:
                dic = "否";
                break;
        }
        return dic;
    }

    public String pdtPlanCtrl(Integer status){
        String dic = "";
        if (status == null ){
            return dic;
        }
        switch (status){
            case 0:
                dic = "是";
                break;
            case 1:
                dic = "否";
                break;
        }
        return dic;
    }
    public String pdtQueue(Integer status){
        String dic = "";
        if (status == null ){
            return dic;
        }
        switch (status){
            case 0:
                dic = "是";
                break;
            case 1:
                dic = "否";
                break;
        }
        return dic;
    }
    public String pdtIdentityQueue(Integer status){
        String dic = "";
        if (status == null ){
            return dic;
        }
        switch (status){
            case 0:
                dic = "是";
                break;
            case 1:
                dic = "否";
                break;
        }
        return dic;
    }

    public String pdtStockCls(Integer status){
        String dic = "";
        if (status == null ){
            return dic;
        }
        switch (status){
            case 0:
                dic = "出货";
                break;
            case 1:
                dic = "进货";
                break;
        }
        return dic;
    }
}
